package com.carlinfo.servlet.util;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;

/**
 * 单例模式
 */
public class DataSourceUtil
{
    private static ComboPooledDataSource dataSource = new ComboPooledDataSource();
    private DataSourceUtil()
    {
    }
    public static DataSource getInstance()
    {
        return dataSource;
    }
}
